@import '@delon/theme/index';

.tag-cards-container {
  padding: 24px 0;

  .tag-card {
    transition: all 0.3s;
    border-radius: 8px;

    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    ::ng-deep {
      .ant-card-body {
        padding: 12px;
        min-height: 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
      }

      .ant-card-actions {
        border-radius: 0 0 8px 8px;
        border-top: 1px solid rgba(240, 240, 240, 0.5);
        min-height: 32px;

        > li {
          margin: 0;

          > span {
            padding: 4px 0;

            &:hover {
              color: @primary-color;
            }

            i {
              font-size: 14px;
            }
          }
        }
      }
    }
  }

  .tag-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;

    .tag-name {
      font-size: 18px;
      padding: 4px 8px;
      border-radius: 4px;
      margin: 0;
      font-weight: 500;
      line-height: 1.4;
      text-align: center;
      background: rgba(255, 255, 255, 0.8);
    }
  }

  .tag-description {
    color: rgba(35, 34, 34, 0.65);
    font-size: 12px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    width: 100%;
  }
}

.tag-card {
  :global {
    .ant-card-body {
      padding: 12px;
    }
  }
}

.tag-content {
  min-height: 80px;
  display: flex;
  flex-direction: column;
}

.tag-header {
  margin-bottom: 8px;
}

.tag-description {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.65);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.5;
}
